package com.alibaba.cloud.anno;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import jakarta.validation.Constraint;


/**
 * @author zhb131678362@163.com
 * @Description: 描述作用
 * @date 2018/11/2613:56
 */
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.FIELD, ElementType.METHOD})
@Documented
@Inherited
@Constraint(validatedBy = IsMobileValidator.class)
public @interface IsMobile {
    
    /**
     * Require.
     *
     * @return true, if successful
     */
    boolean require() default true;

    /**
     * Message.
     *
     * @return the string
     */
    String message() default "邮箱格式错误";
}
